<template>
    <el-row  type="flex" justify="center">
        <el-col :span="8">
            <el-card class="box-card">
                <el-form label-width="80px" :model="loginUseer">
                    <el-form-item label="用户名">
                        <el-input v-model="loginUseer.fLoginName"></el-input>
                    </el-form-item>
                    <el-form-item label="密码">
                        <el-input type="password" v-model="loginUseer.fPassword"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="onSubmit">登录</el-button>
                    </el-form-item>
                </el-form>
            </el-card>  
        </el-col>
        
    </el-row>
</template>
<script>
import { login } from '../../service/service.js'
// import { index } from '../service/service.js'
import fileDownload from 'js-file-download'
export default {
  data() {
    return {
      loginUseer: {
        fLoginName: "",
        fPassword: ""
      }
    };
  },
  methods: {
      async onSubmit() {
          let res = await login.login(this.loginUseer);
          console.info(res)
      },
    //   async cities(){
    //      let res =  index.provinces();
    //       console.info(res) 
    //   }
  }
};
</script>